#-------------------------------------------------
#
# Project created by QtCreator 2023-04-06T10:45:49
#
#-------------------------------------------------

QT       += core gui serialport sql network serialbus printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += C++11
TARGET = SpectroMeter
TEMPLATE = app


# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
include(./Log/Log.pri)
include(./Utils/Utils.pri)
include(./Device/Device.pri)
include(./Base/Base.pri)

DESTDIR += $$PWD/bin_vs

#指定编译生成的文件到temp目录 分门别类存储
MOC_DIR     = temp/moc
RCC_DIR     = temp/rcc
UI_DIR      = temp/ui
OBJECTS_DIR = temp/obj

srcFile1 = $$PWD/log.ini
dstDir = $$PWD/bin_vs/log.ini
##windows上需要转换路径斜杠 其他系统不需要
srcFile1 = $$replace(srcFile1, /, \\);
dstDir = $$replace(dstDir, /, \\);

#编译后执行拷贝 多个拷贝可以通过 && 符号隔开
QMAKE_POST_LINK += copy /Y $$srcFile1 $$dstDir

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    qcustomplot.cpp \
    GlobalVar.cpp \
    DialogQuantity.cpp \
    DialogValid.cpp \
    QuantityAnalysis.cpp \
    ConsumerWorker.cpp

HEADERS += \
        mainwindow.h \
    libstoolcommon.h \
    qcustomplot.h \
    customtablewidget.h \
    GlobalVar.h \
    DialogQuantity.h \
    DialogValid.h \
    QuantityAnalysis.h \
    ConsumerWorker.h


FORMS += \
        mainwindow.ui \
    DialogQuantity.ui \
    DialogValid.ui

RESOURCES += \
    source.qrc

RC_ICONS=spectrum.ico

DISTFILES += \
    log.ini
